<?php
    $file     = "config/rtmphost.properties" ;
    $rtmpHost = null ;
    
    if( file_exists( $file ) )
    {
        $handle   = fopen( $file , "r" ) ;
        $rtmpHost = "rtmpHost:'" . fread( $handle , filesize( $file ) ) . "'" ;
    }
?>
<html>

<head>

    <title>eVisio</title>

    <meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
    
    <link rel="stylesheet" href="style/index.css" type="text/css" />
    
    <script type="text/javascript" src="js/swfobject.js"></script>

    <script language="JavaScript" type="text/javascript">
        
        var flashvars  = 
        {
            <?php echo $rtmpHost ; ?>
        } ;
        
        var params = 
        {
            allowScriptAccess : "sameDomain"  ,
            bgcolor           : "#FFFFFF"  ,
            quality           : "high"
        } ;
        
        var attributes = {} ;
        
        swfobject.embedSWF("index.swf", "application", "100%", "100%", "10.0.12.36", false, flashvars, params, attributes );
        
    </script>

</head>

<body>

        <div id="application">
            <a href="http://www.adobe.com/go/getflashplayer">
                <img src="http://www.adobe.com/images/shared/download_buttons/get_flash_player.gif" alt="Get Adobe Flash player" />
            </a>
        </div>

</body>

</html>
